package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.dto.PageDTO;
import com.sky.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.query.CategoryQuery;
import com.sky.result.Result;

import java.util.List;

/**
* @author 马毅爽
* @description 针对表【category(菜品及套餐分类)】的数据库操作Service
* @createDate 2023-11-03 21:00:56
*/
public interface CategoryService extends IService<Category> {

    void save(CategoryDTO categoryDTO);

    PageDTO<Category> queryPage(CategoryQuery categoryQuery);

    void updateStatus(Integer status, Long id);

    void update(CategoryDTO categoryDTO);

    void deleteById(Long id);

    List<Category> queryType(Integer type);
}
